from rosa.common_apps.router import routers as common_routers, tags_metadata as common_tags_metadata
from rosa.scarborough_fair import settings

if hasattr(settings, "ROSA_TEST") and settings.ROSA_TEST:
    from rosa.rosa_apps import router
else:
    from apps import router

routers = common_routers
tags_metadata = common_tags_metadata

if hasattr(router, "tags_metadata"):
    tags_metadata.extend(router.tags_metadata)

if hasattr(router, "routers"):
    routers.extend(router.routers)
